export default function (el, binding, vnode) {
  const selectValue = binding.value
 
  const dealStyle = function (tags) {
   tags.forEach(el => {
    selectValue.forEach((item,index) => {
      if(item.type === 1) {
        tags[index].classList.add('select-tag-none');
      }
    })
   })
  }
  // 设置样式 隐藏close icon
  const tags = el.querySelectorAll('.el-tag__close')
  if (tags.length === 0) {
   // 初始化tags为空处理
   setTimeout(() => {
    const tagTemp = el.querySelectorAll('.el-tag__close')
    dealStyle(tagTemp)
   })
  } else {
   dealStyle(tags)
  }
}